package com.igeek.collateral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.igeek.collateral.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.igeek.collateral.vo.PageQueryVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
public interface IRoleService extends IService<Role> {


    Page<Role> findPage(PageQueryVO vo);

    boolean addMenuToRole(Integer[] menuIds,Integer roleId);



    boolean del(Integer rid);

    List<Integer> findMenuByRoleId(Integer roleId);

    List<Integer> findPermissionId(Integer roleId);
}
